//
//  MasterCookBookMaterals.m
//  Taste
//
//  Created by 徐昊 on 16/9/20.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "MasterCookBookMaterals.h"
#import "MasterCookBookMl.h"

@implementation MasterCookBookMaterals

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"ml"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            MasterCookBookMl *ml = [MasterCookBookMl modelWithDic:dic];
            [array addObject:ml];
        }
        _ml = array;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"ml" : [MasterCookBookMl class]};
}

@end
